var user = getCookie("lgc");
change();
async function change() {
    var result = await shopCar({ user });
    var { count } = result;

    $(".count").html(count);
    if ($(".count").text() * 1 > 0) {
        $(".subNav li").html(`<a href="../html/shoppingCar.html" class="toCar">查看我的购物车</a>`);
    }
}
